package Package.Example.Example_1;
import Package.Example.Example_1.SellTicket;
public class Example_1 {
    public static final void Example_1(){
//创建SellTicket类的对象
        SellTicket st=new SellTicket();
//创建三个Thread类的对象，把SellTicket对象作为构造方法的参数，并给出对应的窗口名称
        Thread t1 = new Thread(st,"窗口1");
        Thread t2 = new Thread(st,"窗口2");
        Thread t3 = new Thread(st,"窗口3");
//启动线程
        t1.start();
        t2.start();
        t3.start();

    }
}
